package aval;

<%-- 
    Document   : listar
    Created on : 27/09/2009, 09:38:57 PM
    Author     : tatiana
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html" %>

<%@taglib prefix="rich" uri="http://richfaces.org/rich"%>
<%@taglib prefix="a4j" uri="http://richfaces.org/a4j"%>
<f:view>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <h:form>
        <h1>Listado de Avales</h1>
         <div>
             <h:commandButton id="btnNuevo" value="Nuevo" action="#{GarantiaController.nuevoAval}" />
                </div>

                <h:dataTable id="tblAvales"
                value="#{GarantiaController.avales}"
                             var="item"
                             width="100%">
                    <h:column>
                        <f:facet name="header"><h:outputText value="Nombre"/></f:facet>
                        <h:outputText value="#{item.nombre}" />
                    </h:column>
                     <h:column>
                        <f:facet name="header"><h:outputText value="Apepat"/></f:facet>
                        <h:outputText value="#{item.apellidopaterno}" />
                    </h:column>
                     <h:column>
                        <f:facet name="header"><h:outputText value="Apemat"/></f:facet>
                        <h:outputText value="#{item.apellidomaterno}" />
                    </h:column>
                     <h:column>
                        <f:facet name="header"><h:outputText value="NroDocumento"/></f:facet>
                        <h:outputText value="#{item.nrodocumento}" />
                    </h:column>
                    <h:column>
                        <f:facet name="header"><h:outputText value="Dirección"/></f:facet>
                        <h:outputText value="#{item.direccion}" />
                    </h:column>
                    <h:column>
                        <f:facet name="header"><h:outputText value="Teléfono"/></f:facet>
                        <h:outputText value="#{item.telefono}" />
                    </h:column>
                </h:dataTable>
        </h:form>
    </body>
</html>
</f:view>
